<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysOrgBean.id}"/>
		<f:event type="preRenderView" listener="#{sysOrgBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Sys Org"/>

	<ui:define name="header">
		Sys Org
	</ui:define>

	<ui:define name="subheader">
		View existing Sys Org
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="sysOrgBeanSysOrgOrgNo" value="Org No:"/>
			<h:outputText id="sysOrgBeanSysOrgOrgNo" value="#{sysOrgBean.sysOrg.orgNo}"/>
			<h:outputText/>
			<h:outputLabel for="sysOrgBeanSysOrgSysOrgType" value="Sys Org Type:"/>
			<h:link id="sysOrgBeanSysOrgSysOrgType" outcome="/sysOrgType/view" value="#{sysOrgBean.sysOrg.sysOrgType}">
				<f:param name="id" value="#{sysOrgBean.sysOrg.sysOrgType.orgTypeNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sysOrgBeanSysOrgSysCompany" value="Sys Company:"/>
			<h:link id="sysOrgBeanSysOrgSysCompany" outcome="/sysCompany/view" value="#{sysOrgBean.sysOrg.sysCompany}">
				<f:param name="id" value="#{sysOrgBean.sysOrg.sysCompany.comNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="sysOrgBeanSysOrgOrgCode" value="Org Code:"/>
			<h:outputText id="sysOrgBeanSysOrgOrgCode" value="#{sysOrgBean.sysOrg.orgCode}"/>
			<h:outputText/>
			<h:outputLabel for="sysOrgBeanSysOrgOrgName" value="Org Name:"/>
			<h:outputText id="sysOrgBeanSysOrgOrgName" value="#{sysOrgBean.sysOrg.orgName}"/>
			<h:outputText/>
			<h:outputLabel for="sysOrgBeanSysOrgSysOrgSubsForOrgNo" value="Sys Org Subs For Org No:"/>
			<h:dataTable id="sysOrgBeanSysOrgSysOrgSubsForOrgNo" styleClass="data-table" value="#{forgeview:asList(sysOrgBean.sysOrg.sysOrgSubsForOrgNo)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Org By Sub Org No"/>
					</f:facet>
					<h:link outcome="/sysOrgSub/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysOrgBySubOrgNo" value="#{forgeview:display(_item.sysOrgBySubOrgNo)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sub Org Descr"/>
					</f:facet>
					<h:link outcome="/sysOrgSub/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSubOrgDescr" value="#{_item.subOrgDescr}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysOrgBeanSysOrgFaJournalLines" value="Fa Journal Lines:"/>
			<h:dataTable id="sysOrgBeanSysOrgFaJournalLines" styleClass="data-table" value="#{forgeview:asList(sysOrgBean.sysOrg.faJournalLines)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Jn Dr Amt"/>
					</f:facet>
					<h:link outcome="/faJournalLine/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemJnDrAmt" value="#{_item.jnDrAmt}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Jn Cr Amt"/>
					</f:facet>
					<h:link outcome="/faJournalLine/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemJnCrAmt" value="#{_item.jnCrAmt}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Jn Status Dr Cr"/>
					</f:facet>
					<h:link outcome="/faJournalLine/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemJnStatusDrCr" value="#{_item.jnStatusDrCr}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysOrgBeanSysOrgFaJournals" value="Fa Journals:"/>
			<h:dataTable id="sysOrgBeanSysOrgFaJournals" styleClass="data-table" value="#{forgeview:asList(sysOrgBean.sysOrg.faJournals)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Jn No"/>
					</f:facet>
					<h:link outcome="/faJournal/view">
						<f:param name="id" value="#{_item.jnNo}"/>
						<h:outputText id="itemJnNo" value="#{_item.jnNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Jn Amt"/>
					</f:facet>
					<h:link outcome="/faJournal/view">
						<f:param name="id" value="#{_item.jnNo}"/>
						<h:outputText id="itemJnAmt" value="#{_item.jnAmt}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="sysOrgBeanSysOrgSysOrgSubsForSubOrgNo" value="Sys Org Subs For Sub Org No:"/>
			<h:dataTable id="sysOrgBeanSysOrgSysOrgSubsForSubOrgNo" styleClass="data-table" value="#{forgeview:asList(sysOrgBean.sysOrg.sysOrgSubsForSubOrgNo)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Org By Org No"/>
					</f:facet>
					<h:link outcome="/sysOrgSub/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysOrgByOrgNo" value="#{forgeview:display(_item.sysOrgByOrgNo)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sub Org Descr"/>
					</f:facet>
					<h:link outcome="/sysOrgSub/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSubOrgDescr" value="#{_item.subOrgDescr}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>